package com.qiqv.VMTool;

import com.sun.tools.attach.VirtualMachine;

/**
 * @author hjr
 * @version 1.0
 * @date 2023/12/13 10:19
 */
public class AttachTool {

    public static void main(String[] args) {
        try {
            VirtualMachine  vm= VirtualMachine.attach("32448");
            vm.loadAgent("C:\\Users\\98093\\Desktop\\class\\java-agent-mock.jar","param");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
